package com.export.dao;

import com.export.entity.ReportExportLog;
import rsj.annotation.Update;

/**
 * 导出日志
 *
 * @author yuanqinglong
 * @since 2021/7/15 15:43
 */
public interface ExportLogDao {


    /**
     * 保存日志
     *
     * @param exportLog 导出日志
     */
    @Update("INSERT INTO sys.export_log (log_id,export_file_id,export_file_name,file_create_status,file_create_tm,export_tm,export_operson)" +
            " VALUES ( #{logId} , #{exportFileId}, #{exportFileName} ,#{fileCreateStatus} ,#{fileCreateTm},#{exportTm},#{exportOperson})")
    void saveExportLog(ReportExportLog exportLog);


    /**
     * 导出日志更新状态
     *
     * @param exportLog 导出日志
     */
    @Update("UPDATE sys.export_log SET file_create_status = #{fileCreateStatus},export_file_id = #{exportFileId} WHERE log_id = #{logId}")
    void updateExportLogStatus(ReportExportLog exportLog);


}
